package com.millstein.mapper;

import com.millstein.model.CouponDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author millstein
 * @since 2021-09-14
 */
public interface CouponMapper extends BaseMapper<CouponDO> {

    /**
     * 扣减库存
     * @param id 优惠券id
     */
    int reduceStock(@Param("id") Long id);
}
